package cn.ee.dfs.esb.service;

import cn.ee.dfs.common.entity.QueryRequest;
import cn.ee.dfs.esb.entity.ServiceInfo;
import cn.ee.dfs.esb.entity.UserService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author TWJ
 * @date 2019-07-31 17:02:37
 */
public interface IServiceInfoService extends IService<ServiceInfo> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param serviceInfo serviceInfo
     * @return IPage<ServiceInfo>
     */
    IPage<ServiceInfo> findServiceInfos(QueryRequest request, ServiceInfo serviceInfo);


    IPage<ServiceInfo> findUserServices(QueryRequest request, UserService userService);


    /**
     * 查询（所有）
     *
     * @param serviceInfo serviceInfo
     * @return List<ServiceInfo>
     */
    List<ServiceInfo> findServiceInfos(ServiceInfo serviceInfo);

    /**
     * 新增
     *
     * @param serviceInfo serviceInfo
     */
    void createServiceInfo(ServiceInfo serviceInfo);

    /**
     * 修改
     *
     * @param serviceInfo serviceInfo
     */
    void updateServiceInfo(ServiceInfo serviceInfo);

    /**
     * 删除
     *
     * @param serviceIds serviceInfo
     */
    void deleteServiceInfo(String[] serviceIds);



    Integer getCallCount(Integer serviceId,String range);
}
